package com.app.megaprosoft.modyimcarcare;

import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Calendar;

import com.app.megaprosoft.DB.Connect;

import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import android.widget.Toast;


public class Service_FilterUpdateToServer extends Service{
	Service_BroadcastUpdateToServer intentReceiver = new Service_BroadcastUpdateToServer(); 
    Connect con = new Connect(); 
    Connection conn = con.Connect();
    ResultSet rs = null;
	
	@Override
	public IBinder onBind(Intent arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		IntentFilter intentFilter = new IntentFilter(Intent.ACTION_TIME_TICK);
		intentFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
		registerReceiver(intentReceiver, intentFilter);
		Toast.makeText(this, "Start Lawwwww", Toast.LENGTH_LONG).show();
		super.onCreate();
	}

	@Override
	public void onDestroy() {
		// TODO Auto-generated method stub
		unregisterReceiver(intentReceiver);
		Toast.makeText(this, "Stopppppp lawwww", Toast.LENGTH_LONG).show();
		super.onDestroy();
	}
	
	
	
  
}
